//
// Created by zhengbo on 23-4-18.
//

#ifndef VISUALIZATION_TOOL_EGOTRAJECTORY_H
#define VISUALIZATION_TOOL_EGOTRAJECTORY_H


#include "RenderObject.h"

class EgoTrajectory : public RenderObject {
public:
    EgoTrajectory() = default;

    EgoTrajectory(std::vector<Point>& points);

    ~EgoTrajectory() override;

    virtual void Update() override;

    virtual void Render() override;

    virtual void InitBuffer() override;

    virtual void ReleaseBuffer() override;


    void SetBuffer(std::vector<Point>& points);

private:
    uint32_t mVbo = 0;
    std::vector<Point> mPoints={};
};

#endif //VISUALIZATION_TOOL_EGOTRAJECTORY_H
